<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>地图</title>
		<meta name="Author" content="余光cc" /> 
        <meta name="Copyright" content="网站版权" /> 
        <meta name="keywords" content="网站关键字" />
        <meta name="description" content="网站描述" />
        <link rel="Shortcut Icon" href="网站.ico图标路径" />
		<link rel="stylesheet" type="text/css" href="css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="css/map.css"/>
		<link rel="stylesheet" type="text/css" href="layui/css/layui.css"/>
		<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=lEyPXqtLFwZUmpRgZdgKnGEq1fUu3Tr4"></script>
	</head>
	<body>
	<div class="box" style="background: url(images/survey.png) no-repeat;">
		<div class="box-back">
			返回
		</div>
		<div class="box-left">
			<ul>
				<li>
					<div data-id="1" class="box-left-item">
						<p>第一分站</p>
					</div>
				</li>
				<li>
					<div data-id="2" class="box-left-item">
						<p>第二分站</p>
					</div>
				</li>
				<li>
					<div data-id="3" class="box-left-item">
						<p>第三分站</p>
					</div>
				</li>
				<li>
					<div data-id="4" class="box-left-item">
						<p>第四分站</p>
					</div>
				</li>
				<li>
					<div data-id="5" class="box-left-item">
						<p>第五分站</p>
					</div>
				</li>
				<li>
					<div data-id="6" class="box-left-item">
						<p>第六分站</p>
					</div>
				</li>
			</ul>
		</div>
		<div class="box-right">
			<div id="allmap"></div>
			<div class="box-right-mank" style="display: none;">
				<div class="b-r-m-top">
					<div class="b-r-m-t-item">党总支数量 10个</div>
					<div class="b-r-m-t-item">党支部数量49个</div>
					<div class="b-r-m-t-item">党员数量239人</div>
				</div>
				<div class="b-r-m-bottom">
					<div class="b-r-m-b-item map-zz">·&nbsp;党总支&nbsp;·</div>
					<div class="b-r-m-b-item map-zb">·&nbsp;党支部&nbsp;·</div>
				</div>
			</div>
		</div>
	</div>
	<script src="js/jquery-3.3.1-min.js" type="text/javascript" charset="utf-8"></script>
	<script src="layui/layui.all.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/echarts.common.min.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		
	</script>
	 <script type="text/javascript">
		// 百度地图API功能	
		$('.box-back').on('click',function(){
			window.history.go(-1);
		})
		var opts = {
				width : 250,     // 信息窗口宽度
				height: 80,     // 信息窗口高度
				title : "信息窗口" , // 信息窗口标题
				enableMessage:true//设置允许信息窗发送短息
			   };
		map = new BMap.Map("allmap");
		map.centerAndZoom(new BMap.Point(119.637916,31.287757), 15);
		$.ajax({
			type:"post",
			url:"http://www.shopyun.top:8011/dp/api/mappoint",
			async:true,
			data:{fenbu:''},
			success:function(data){
				var data_info = [];
				$.each(data, function(i,v) {
					var newDataArr = [];
					newDataArr.push(v.location.split(',')[0]);
					newDataArr.push(v.location.split(',')[1]);
					newDataArr.push(v.NAME);
					newDataArr.push(v.id);
					data_info.push(newDataArr);
				});
				var navigationControl = new BMap.NavigationControl({
			    // 靠左上角位置
			    anchor: BMAP_ANCHOR_TOP_LEFT,
			    // LARGE类型
			    type: BMAP_NAVIGATION_CONTROL_LARGE,
			    // 启用显示定位
			    enableGeolocation: false
			  });				
			  map.enableScrollWheelZoom(true);     //开启鼠标滚轮缩放
			   map.addControl(navigationControl);

				
				for(var i=0;i<data_info.length;i++){
					var marker = new BMap.Marker(new BMap.Point(data_info[i][0],data_info[i][1]));  // 创建标注
					var content = data_info[i][2];
					map.addOverlay(marker);               // 将标注添加到地图中
					addClickHandler(content,marker,data_info[i][3]);
				}
				$('.box-left-item').on('click',function(){
					var id = $(this).attr('data-id');
					$.ajax({
						type:"post",
						url:"http://www.shopyun.top:8011/dp/api/mappoint",
						data:{fenbu:id},
						async:true,
						success:function(data){
							var data_info = [];
							$.each(data, function(i,v) {
								var newDataArr = [];
								newDataArr.push(v.location.split(',')[0]);
								newDataArr.push(v.location.split(',')[1]);
								newDataArr.push(v.NAME);
								newDataArr.push(v.id);
								data_info.push(newDataArr);
							});
							map.clearOverlays();
							setTimeout(function(){
								for(var i=0;i<data_info.length;i++){
									var marker = new BMap.Marker(new BMap.Point(data_info[i][0],data_info[i][1]));  // 创建标注
									var content = data_info[i][2];
									map.addOverlay(marker);               // 将标注添加到地图中
									
									addClickHandler(content,marker,data_info[i][3]);
								}
								 getBoundary();
							},300)
						}
					});
				})
			}
		});
		function getBoundary() {
	  //  var str = "119.64718015727503,31.32738990153753;119.64869167111291,31.330308410328833;119.64891543455258,31.33094405187273;119.64894443957998,31.33092997669001;119.65071816825792,31.330087833413522;119.65173094368816,31.32961397311418;119.653332663959,31.328845312665454;119.65447527410981,31.32830398226702;119.71164805733545,31.312143176343525;119.65506724842355,31.328043211123514;119.71285454916703,31.309727373492816;119.71145011898446,31.307497404133386;119.65576353551697,31.327774215246887;119.6560581576695,31.32770456378454;119.65633578900562,31.327666004667087;119.65674379801266,31.327659138927537;119.65694534056693,31.327686186187314;119.65708573559915,31.32771680916041;119.65760222168089,31.327825602461203;119.65772560296611,31.327869331279146;119.65798948217181,31.328015585760433;119.64987673362914,31.330497129486886;119.65864199099923,31.328649632982806;119.66674926307051,31.32615566220669;119.66292231552283,31.327624757700434;119.71101153460005,31.30325487574814;119.67229278441458,31.319197161575328;119.67565019545255,31.317118455109263;119.6792262041758,31.317660895059024;119.67827420856581,31.317273475325884;119.68493315209517,31.319987618709863;119.68827227358037,31.3199356501349;119.64835478418703,31.32959892151948;119.69401324272691,31.31744061960073;119.69951378629187,31.314365375076385;119.70166136898821,31.313546757546487;119.70830958930459,31.3141484973388;119.7061692903551,31.31454920933845;119.71367812801256,31.296811429242414;119.72575191221472,31.29716584250286;119.66963524783051,31.323281893531185;119.72788965147535,31.296244082784316;119.72813856327146,31.29483533125945;119.72224176584591,31.2929214779956;119.71940942765319,31.29187323386133;119.71872938632846,31.288634651384847;119.73311230641657,31.29391964360834;119.72109687656697,31.288665381551322;119.73383399039264,31.292520160201448;119.7336206244876,31.290093313700346;119.73601827919934,31.28650677251302;119.73776514022943,31.277054332914584;119.73541280049754,31.27579615752774;119.737471167486,31.28290172009365;119.73590402875635,31.273989830519604;119.73639314362424,31.2723844415377;119.73605215236054,31.27101531729654;119.73535041099649,31.27019425953471;119.73312304000524,31.268434901980164;119.73325483077164,31.267024700439293;119.73456106155412,31.26644430046242;119.73788631646262,31.26489545561567;119.73777228817453,31.264489404630652;119.73123251597977,31.292672086484902;119.72535061286136,31.289335742341926;119.73659669938019,31.263860352028633;119.73294035357195,31.263081817579625;119.7279866146367,31.261879433505918;119.72610695310311,31.260635543786947;119.72320036217188,31.2554412158759;119.71914874399917,31.246099064571897;119.71970051496106,31.25024491039065;119.71954124092677,31.242168070648734;119.72143915806373,31.241789911229766;119.73716112105684,31.242373918772913;119.7309037944975,31.241545261546918;119.73097714043327,31.233571755846114;119.73834744635191,31.24189232808735;119.73063744781469,31.231849555139163;119.73148098601142,31.230048724131226;119.73161848040938,31.2277290285116;119.73172740128643,31.22884112629173;119.73020111749219,31.227601401554974;119.72711841698072,31.22855523394253;119.72582272806793,31.22802806116794;119.7199562435384,31.22208413860972;119.71795788939741,31.220242099137792;119.71749881235417,31.218520005312875;119.71787468508943,31.216000368266155;119.71647934079354,31.212754788720574;119.71471831617694,31.210718226663374;119.71187930622631,31.209889655400918;119.7071408196534,31.20886289068983;119.70180910001172,31.207051485430803;119.69849818963533,31.204544331104923;119.69709420424599,31.201627235067413;119.69331235172703,31.198027986057454;119.69343809050092,31.197320306774575;119.69452654455233,31.195289326097267;119.69441169269638,31.19468445943453;119.69096384901623,31.193917131637154;119.68977609193945,31.193427691260247;119.68979073350303,31.19161009123144;119.69151304991455,31.185328168779172;119.69153022018308,31.183308698116605;119.68342509544121,31.183024223759215;119.6904612727199,31.182918218067222;119.67913368935062,31.182593809866024;119.67878370547666,31.18169122090055;119.67837988841498,31.17634348968879;119.6780271765834,31.17634006115101;119.67696902815102,31.176327824974415;119.67749760179757,31.17633394526204;119.67670876015391,31.176326692689223;119.67618018455302,31.17632057986128;119.6759189117185,31.17631646591365;119.675390338522,31.176310343822283;119.67486880352024,31.176304075072004;119.67433923539929,31.176297933447;119.67355042536002,31.176290559277692;119.67329017325562,31.17628836580212;119.67292944226311,31.17626600978536;119.67190958310202,31.17605266010845;119.67242302213374,31.1761582971909;119.67088978916559,31.175839071684262;119.67140419839548,31.175945817368664;119.67038444182542,31.175732091320647;119.66987811083807,31.175626050980227;119.66936477062055,31.175519049067457;119.6683532336986,31.175305502851398;119.66885949150614,31.175411815496012;119.6678399725628,31.17519820604957;119.6668205713024,31.17498615582823;119.6673337717375,31.175090680631346;119.66656749835548,31.1749322901849;119.66606137731733,31.174824465657927;119.66504321533735,31.174610517122527;119.66554926591454,31.174716607039823;119.6645372022944,31.17450128704409;119.66402420055522,31.17439301611148;119.6637712613016,31.174038779344876;119.66363375750417,31.17384780982073;119.66322730221148,31.17325174912616;119.66336579106664,31.173467735738633;119.65619929789294,31.178480711898473;119.65090101730061,31.185781536188923;119.65174732538712,31.184061282136245;119.64952675752589,31.19366000578718;119.64843705185932,31.19608529646455;119.64724861081483,31.196085981151178;119.64570914291853,31.19557998755652;119.64004062002144,31.192324818197932;119.63389734718027,31.190143786990063;119.62915809574183,31.19068321173443;119.63105850369901,31.189904098027004;119.62700680051677,31.193374456457075;119.62424703048396,31.198172334919203;119.62254905462467,31.203491646313744;119.62156282310117,31.20852205742804;119.62110442404497,31.221285440845058;119.621000275848,31.233398827072815;119.62182144947741,31.234120839833732;119.62724624201714,31.23583397414543;119.62590144822055,31.240554946206174;119.6274722914862,31.236947562167042;119.6225573924094,31.24412773788183;119.6205427148544,31.24469498246996;119.61971576322613,31.244578662360514;119.61915155840698,31.24174138693497;119.61515171160863,31.239744162707222;119.61492198463104,31.238931873250603;119.61727210947423,31.240493134252365;119.61601483733868,31.23582452780071;119.61840675615781,31.232641555518395;119.61853295225909,31.231734880823552;119.6152549613072,31.228136806728816;119.61324960088751,31.227694192008887;119.61419594503789,31.22761185299811;119.61216858208026,31.229692379633278;119.61110368944082,31.22977294840936;119.60849981167858,31.23002690116797;119.60659943074123,31.23100304529024;119.60529109187885,31.2317891361693;119.6045819554406,31.23177716873989;119.60210414351214,31.23093120570177;119.59892018704637,31.229576189536665;119.59405814343489,31.230032043569942;119.5914080708546,31.236752552434243;119.59203565286842,31.23082552202007;119.59377243166102,31.237576225868086;119.59530325389846,31.238699808912454;119.59456821891185,31.241216821347958;119.5952879651435,31.240314600344234;119.59148106560379,31.24169965859728;119.59064067832665,31.242703923024305;119.58976416560085,31.24754524357658;119.58745222990444,31.25339263582371;119.58732125398741,31.25460327357994;119.5919134627807,31.25825396334547;119.59435140872516,31.263419062756245;119.59415038580775,31.25978349906767;119.59767087890127,31.263249678692976;119.59612528389918,31.263737591047008;119.60505186990513,31.25901241114914;119.60338982844338,31.259592253922698;119.6058749940699,31.259531270548415;119.60681104414662,31.260556223846763;119.60643674747607,31.262467631533625;119.6049888109909,31.265369883619233;119.60319818486714,31.26695566211875;119.59676125129772,31.271212614583003;119.5952009582786,31.273215246874905;119.59506458739851,31.275030713766732;119.59869165475902,31.279610808089664;119.60457258362644,31.28342857036914;119.60714408930227,31.2867012354264;119.60816497116576,31.291262060174418;119.60888810099414,31.28986162333353;119.60600884759194,31.294252146908377;119.60434459702952,31.295134139885565;119.59478146423865,31.305411480503043;119.59225089376065,31.3103393248487;119.59072762490032,31.32254782012042;119.58927278215732,31.32637897014351;119.58544498463404,31.329806012829433;119.58495819719793,31.33121904672314;119.58624936511951,31.333138260247402;119.59389099938824,31.334672394273625;119.59104523582747,31.334653220230802;119.60762567762214,31.334350547501423;119.60407307364085,31.334897012714087;119.60929464648632,31.332764883446686;119.61359457752067,31.327192664932202;119.61763221342383,31.32484907663409;119.62734284551445,31.3228079314846;119.63259743932981,31.316829510897957;119.63153121225021,31.317016826065682;119.62911939252982,31.322534181774056;119.63295727709573,31.316834955784252;119.63629077676228,31.31687728326418;119.63504519650289,31.319198304986024;119.6349128703247,31.31951997598151;119.63486425315126,31.319778517791452;119.63484366641548,31.320149386172677;119.63484516295428,31.321691778845395;119.6348746032171,31.323226476758872;119.63487500989305,31.323633583475452;119.63481266361288,31.32410903409438;119.63448649240576,31.325983956115817;119.63402143022915,31.328522384305536;119.63381887627264,31.32935426804064;119.63375633184776,31.329619609856117;119.63376344292588,31.329752725594957;119.63383332279277,31.329845557640308;119.63420434045807,31.32997582051228;119.63665743595146,31.330687142620246;119.63602885917845,31.330541142870516;119.63704159458048,31.330760637873;119.63737085494115,31.330777519637596;119.63765022149832,31.330765883369896;119.63797146930126,31.3307055040472;119.63824479759458,31.33060264819913;119.63868461592959,31.33029792176765;119.64004005338039,31.32915084063459;119.64055786349763,31.328767810006454;119.64093513031146,31.32858083789657;119.64158600854316,31.328318034146555;119.6426076070505,31.328049269669293;119.64311805835113,31.32796702190614;119.64416826297494,31.327920861696388;119.64484788842206,31.32788012176597;119.64546460506193,31.327796860635555;119.64718015727503,31.32738990153753";
	    // var str = "119.65207334167788,31.325219921340913;119.65325120592065,31.327426147881617;119.65358861491039,31.3281345203391;119.65381291637298,31.328770062506482;119.65384225366134,31.328755744607818;119.6556200001232,31.327908133936017;119.65477682707353,31.32831998875847;119.65663541050729,31.327431349643152;119.65824077659607,31.326657903894304;119.65997945116276,31.325851211736815;119.6593859411663,31.326113656384862;119.66067726436263,31.325580672187485;119.66097278537686,31.32551040562275;119.66125093258181,31.325470967153954;119.66165979299011,31.325463375970745;119.66186181504183,31.32548996056176;119.66200259329705,31.325520338384955;119.66252053072898,31.32562824032126;119.66264391295451,31.325671826107687;119.66290871512403,31.325817593489287;119.66356260132686,31.326450703758052;119.66785237745431,31.32541992713566;119.73285674561524,31.294302537617664;119.67168720543961,31.323948724798676;119.7331058191756,31.29289390443818;119.71641860620036,31.305485186447623;119.67724033145863,31.316991995356805;119.68060286204691,31.314918547803295;119.68989651305496,31.31782050271458;119.68418343732809,31.31547098173692;119.68323039809263,31.31508057029648;119.69323788808279,31.31778444681942;119.69898140735185,31.315320740820237;119.67457838498703,31.32107518254674;119.7044829126555,31.312278809440464;119.71113843017164,31.312506310214953;119.7066307601399,31.31147407132464;119.7132786127133,31.31211916688414;119.72720885733186,31.290959692453548;119.71661650818434,31.310133740410187;119.71782272166772,31.307724319517494;119.71598013087196,31.301238419691067;119.73071902431506,31.29521850772879;119.7186464650863,31.29480859001344;119.72437671754817,31.2898986644998;119.72369676424402,31.286655285337893;119.73031750947699,31.287384057921397;119.72606431224024,31.28669731484356;119.73619983558723,31.290736449215;119.73808018048065,31.29198688669039;119.73880208619833,31.29058778264918;119.7385885910235,31.288159662338533;119.74098704266432,31.284572985307385;119.74273400873119,31.275117214259726;119.74038114444814,31.273857983616967;119.74087258621662,31.27205133520892;119.74244030636713,31.280966900703238;119.74136146794515,31.27044528803975;119.7410204960156,31.269075436804407;119.74031831379068,31.26825376320365;119.73809053973528,31.26649215233245;119.73822208322443,31.265081401721513;119.73952842323143,31.2645019298765;119.74285454509453,31.26295295737092;119.74274046534187,31.262546828406926;119.741564705132,31.261917551994273;119.73295245595246,31.259924054467852;119.73790722380645,31.261136266513848;119.73107297962888,31.258674545567597;119.72466525144887,31.248253667674412;119.7281653082111,31.25346754690051;119.72411269542812,31.24410356827538;119.72450415917064,31.240172358749714;119.72640209315779,31.23980245265386;119.73586684355472,31.23958665710887;119.74212584051726,31.240421153055188;119.7359387502786,31.231609458420948;119.74331235875398,31.23993894253074;119.73559869671642,31.229885799956318;119.73644186124685,31.22808570504029;119.7366880534654,31.22687766445742;119.73207858153312,31.22658160004923;119.73657899235249,31.225764902371118;119.73516149336554,31.22563476814524;119.73078267720848,31.226050388970542;119.72491560602455,31.22008070720479;119.72291727077875,31.218227988465408;119.72245799404999,31.21650241036645;119.72283331741515,31.213983808986164;119.7214379156756,31.210729299717556;119.7196768201487,31.20868213423465;119.71683786393919,31.20783688753813;119.70676838635232,31.204932991065547;119.71210004253052,31.206779878185973;119.70345701167452,31.202402958812034;119.70205274688125,31.19947560025798;119.69826967757263,31.19585144639273;119.69839545733325,31.19514445583759;119.69948416961049,31.193118907606323;119.6959200387668,31.191725452482103;119.69936927926402,31.19251328524124;119.69474631143164,31.189410824600863;119.69473154125993,31.191229093985996;119.69646955532095,31.183135341461615;119.69648654891493,31.181114870310765;119.68837619408075,31.1807900479033;119.69541733097257,31.180718242764897;119.68408018593728,31.180343913610862;119.68332544409704,31.174088208079368;119.68372955981405,31.179439835043155;119.68297226427575,31.174083843133307;119.6819126642124,31.17406854047528;119.68244193006682,31.174076159720997;119.68165211171491,31.174066991859316;119.68033184178498,31.174047337227325;119.67980959504561,31.174040118995435;119.68112281693062,31.17405948366642;119.68086116130003,31.174054750479574;119.67927915896051,31.17403282666409;119.67901857063043,31.174031144396515;119.67848921016142,31.1740238883305;119.67822861577679,31.174021144670593;119.67684577965822,31.173783304284274;119.67736015267587,31.173889786320743;119.67786743575712,31.17399831132613;119.67633958405345,31.173675860507466;119.67531793008199,31.17346086297432;119.67582412144652,31.17356858827149;119.67481065288102,31.173354228010627;119.67379039542723,31.17313936489179;119.6742962949058,31.173247160556745;119.67328314270652,31.173032644642593;119.67276881484139,31.17292519923652;119.67226185983058,31.172817570018484;119.67174756030553,31.172712732325834;119.67098690973368,31.172551229461373;119.67149409655146,31.17265873190418;119.67047374651467,31.172443220517387;119.66996659961758,31.172337196872448;119.66945947573609,31.172228377288036;119.66869195400349,31.171765906856347;119.6685541219748,31.171574871625364;119.66828582585288,31.171194824907815;119.66894556348866,31.172120128355484;119.6681469222857,31.17097883253779;119.66110285649347,31.17622059755626;119.65664029958582,31.18181482106783;119.65579165659922,31.183538288557894;119.65441445555591,31.191424357773467;119.65332213669377,31.193854261499805;119.65058759164805,31.19335751448132;119.65213073218243,31.19385881452703;119.64490618830109,31.190119501788956;119.63875068166848,31.187957230183443;119.63590700652603,31.187725472186973;119.63184942416682,31.191207017674287;119.6340035728724,31.18850966113187;119.62908666461001,31.196012292744076;119.62640072175716,31.206370676420566;119.62594375715844,31.2191408610932;119.62738732144179,31.20133678117839;119.62584172362389,31.23126045360599;119.63209445429942,31.233686882007003;119.62666382949311,31.231981755522078;119.63232086597989,31.234800648468184;119.62740221659949,31.24199269689255;119.63074881830937,31.23841284904552;119.62538617418186,31.242562666528027;119.62455899584025,31.242447128150697;119.62399397727617,31.239608468103025;119.62211350826561,31.238360369749625;119.61999238728347,31.237611317114144;119.62085483803425,31.23368978854374;119.61976270280306,31.23679841178965;119.62324684320933,31.230504499681714;119.62337292567176,31.22959737092429;119.62009349162697,31.225997985669068;119.61903446753223,31.22547281463427;119.61808809347716,31.22555461928044;119.61594337012248,31.227632462124753;119.61700795944168,31.227553265528652;119.61334123189779,31.2278833927199;119.61144266614765,31.228856533783855;119.61013561966476,31.229640340058662;119.60942735769055,31.229626719560812;119.60695248512067,31.22877411739751;119.60377351774883,31.227409283286853;119.59690357964793,31.228634737350664;119.59892110985965,31.22784857692637;119.59627842384373,31.23456206760941;119.59863739366891,31.23539516946685;119.60016537133633,31.236524976793234;119.60015036606096,31.238140426941424;119.59943226795669,31.239040514878393;119.5963525048991,31.239512202943132;119.5955140976498,31.240513581483903;119.59464092448671,31.24535361619929;119.59233580385133,31.251194883901906;119.59220540959899,31.25240541226425;119.59678643957996,31.25607581227348;119.59901851780542,31.25761450001341;119.60098979661336,31.261577447993037;119.60253244807453,31.26109458763071;119.59921950842696,31.26125255149465;119.60824180268544,31.257452543922884;119.60990172846749,31.256876429505926;119.61072397715114,31.257397203219508;119.61165935957351,31.258424414787036;119.61128549471381,31.260336104169546;119.6098394508379,31.263236410255367;119.60805124260037,31.26481868043159;119.60162515532919,31.269057889843367;119.60006804740402,31.27105594505952;119.59993191639819,31.272871613779856;119.60355229548999,31.27746623996671;119.6094245310869,31.28130173721427;119.611993390182,31.284580973877155;119.61301337752433,31.289145193876116;119.6137357763452,31.287745479427695;119.61085897081115,31.292132572743505;119.59964916397284,31.30326292303309;119.60919662738422,31.29301116301548;119.59712418542185,31.30818334026994";
	    var str = "119.652073341678,31.3252199213409;119.653251205921,31.3274261478816;119.65358861491,31.3281345203391;119.653812916373,31.3287700625065;119.653842253661,31.3287557446078;119.654776827074,31.3283199887585;119.655620000123,31.327908133936;119.656635410507,31.3274313496432;119.658240776596,31.3266579038943;119.659385941166,31.3261136563849;119.659979451163,31.3258512117368;119.660677264363,31.3255806721875;119.660972785377,31.3255104056228;119.661250932582,31.325470967154;119.66165979299,31.3254633759707;119.661861815042,31.3254899605618;119.662002593297,31.325520338385;119.662520530729,31.3256282403213;119.662643912955,31.3256718261077;119.662908715124,31.3258175934893;119.663562601327,31.3264507037581;119.667852377454,31.3254199271357;119.67168720544,31.3239487247987;119.674578384987,31.3210751825467;119.677240331459,31.3169919953568;119.680602862047,31.3149185478033;119.683230398093,31.3150805702965;119.684183437328,31.3154709817369;119.689896513055,31.3178205027146;119.693237888083,31.3177844468194;119.698981407352,31.3153207408202;119.704482912655,31.3122788094405;119.70663076014,31.3114740713246;119.711138430172,31.312506310215;119.713278612713,31.3121191668841;119.716616508184,31.3101337404102;119.717822721668,31.3077243195175;119.7164186062,31.3054851864476;119.715980130872,31.3012384196911;119.718646465086,31.2948085900134;119.730719024315,31.2952185077288;119.732856745615,31.2943025376177;119.733105819176,31.2928939044382;119.727208857332,31.2909596924535;119.724376717548,31.2898986644998;119.723696764244,31.2866552853379;119.72606431224,31.2866973148436;119.730317509477,31.2873840579214;119.736199835587,31.290736449215;119.738080180481,31.2919868866904;119.738802086198,31.2905877826492;119.738588591024,31.2881596623385;119.740987042664,31.2845729853074;119.742440306367,31.2809669007032;119.742734008731,31.2751172142597;119.740381144448,31.273857983617;119.740872586217,31.2720513352089;119.741361467945,31.2704452880397;119.741020496016,31.2690754368044;119.740318313791,31.2682537632036;119.738090539735,31.2664921523325;119.738222083224,31.2650814017215;119.739528423231,31.2645019298765;119.742854545095,31.2629529573709;119.742740465342,31.2625468284069;119.741564705132,31.2619175519943;119.737907223806,31.2611362665138;119.732952455952,31.2599240544679;119.731072979629,31.2586745455676;119.728165308211,31.2534675469005;119.724665251449,31.2482536676744;119.724112695428,31.2441035682754;119.724504159171,31.2401723587497;119.726402093158,31.2398024526539;119.735866843555,31.2395866571089;119.742125840517,31.2404211530552;119.743312358754,31.2399389425307;119.735938750279,31.2316094584209;119.735598696716,31.2298857999563;119.736441861247,31.2280857050403;119.736688053465,31.2268776644574;119.736578992352,31.2257649023711;119.735161493366,31.2256347681452;119.732078581533,31.2265816000492;119.730782677208,31.2260503889705;119.724915606025,31.2200807072048;119.722917270779,31.2182279884654;119.72245799405,31.2165024103664;119.722833317415,31.2139838089862;119.721437915676,31.2107292997176;119.719676820149,31.2086821342347;119.716837863939,31.2078368875381;119.712100042531,31.206779878186;119.706768386352,31.2049329910655;119.703457011675,31.202402958812;119.702052746881,31.199475600258;119.698269677573,31.1958514463927;119.698395457333,31.1951444558376;119.69948416961,31.1931189076063;119.699369279264,31.1925132852412;119.695920038767,31.1917254524821;119.69473154126,31.191229093986;119.694746311432,31.1894108246009;119.696469555321,31.1831353414616;119.696486548915,31.1811148703108;119.695417330973,31.1807182427649;119.688376194081,31.1807900479033;119.684080185937,31.1803439136109;119.683729559814,31.1794398350432;119.683325444097,31.1740882080794;119.682972264276,31.1740838431333;119.682441930067,31.174076159721;119.681912664212,31.1740685404753;119.681652111715,31.1740669918593;119.681122816931,31.1740594836664;119.6808611613,31.1740547504796;119.680331841785,31.1740473372273;119.679809595046,31.1740401189954;119.679279158961,31.1740328266641;119.67901857063,31.1740311443965;119.678489210161,31.1740238883305;119.678228615777,31.1740211446706;119.677867435757,31.1739983113261;119.677360152676,31.1738897863207;119.676845779658,31.1737833042843;119.676339584053,31.1736758605075;119.675824121447,31.1735685882715;119.675317930082,31.1734608629743;119.674810652881,31.1733542280106;119.674296294906,31.1732471605567;119.673790395427,31.1731393648918;119.673283142707,31.1730326446426;119.672768814841,31.1729251992365;119.672261859831,31.1728175700185;119.671747560306,31.1727127323258;119.671494096551,31.1726587319042;119.670986909734,31.1725512294614;119.670473746515,31.1724432205174;119.669966599618,31.1723371968724;119.669459475736,31.172228377288;119.668945563489,31.1721201283555;119.668691954003,31.1717659068563;119.668554121975,31.1715748716254;119.668285825853,31.1711948249078;119.668146922286,31.1709788325378;119.661102856493,31.1762205975563;119.656640299586,31.1818148210678;119.655791656599,31.1835382885579;119.654414455556,31.1914243577735;119.653322136694,31.1938542614998;119.652130732182,31.193858814527;119.650587591648,31.1933575144813;119.644906188301,31.190119501789;119.638750681668,31.1879572301834;119.635907006526,31.187725472187;119.634003572872,31.1885096611319;119.631849424167,31.1912070176743;119.62908666461,31.1960122927441;119.627387321442,31.2013367811784;119.626400721757,31.2063706764206;119.625943757158,31.2191408610932;119.625841723624,31.231260453606;119.626663829493,31.2319817555221;119.632094454299,31.233686882007;119.63232086598,31.2348006484682;119.630748818309,31.2384128490455;119.627402216599,31.2419926968925;119.625386174182,31.242562666528;119.62455899584,31.2424471281507;119.623993977276,31.239608468103;119.622113508266,31.2383603697496;119.619992387283,31.2376113171141;119.619762702803,31.2367984117897;119.620854838034,31.2336897885437;119.623246843209,31.2305044996817;119.623372925672,31.2295973709243;119.620093491627,31.2259979856691;119.619034467532,31.2254728146343;119.618088093477,31.2255546192804;119.617007959442,31.2275532655287;119.615943370122,31.2276324621248;119.613341231898,31.2278833927199;119.611442666148,31.2288565337839;119.610135619665,31.2296403400587;119.609427357691,31.2296267195608;119.606952485121,31.2287741173975;119.603773517749,31.2274092832869;119.59892110986,31.2278485769264;119.596903579648,31.2286347373507;119.596278423844,31.2345620676094;119.598637393669,31.2353951694669;119.600165371336,31.2365249767932;119.600150366061,31.2381404269414;119.599432267957,31.2390405148784;119.596352504899,31.2395122029431;119.59551409765,31.2405135814839;119.594640924487,31.2453536161993;119.592335803851,31.2511948839019;119.592205409599,31.2524054122642;119.59678643958,31.2560758122735;119.599018517805,31.2576145000134;119.599219508427,31.2612525514947;119.600989796613,31.261577447993;119.602532448075,31.2610945876307;119.608241802685,31.2574525439229;119.609901728467,31.2568764295059;119.610723977151,31.2573972032195;119.611659359574,31.258424414787;119.611285494714,31.2603361041695;119.609839450838,31.2632364102554;119.6080512426,31.2648186804316;119.601625155329,31.2690578898434;119.600068047404,31.2710559450595;119.599931916398,31.2728716137799;119.60355229549,31.2774662399667;119.609424531087,31.2813017372143;119.611993390182,31.2845809738772;119.613735776345,31.2877454794277;119.613013377524,31.2891451938761;119.610858970811,31.2921325727435;119.609196627384,31.2930111630155;119.599649163973,31.3032629230331;119.597124185422,31.3081833402699;119.595605047768,31.3203902791624;119.594153835066,31.3242171054571;119.590336846525,31.3276302480295;119.589851507891,31.3290417137274;119.59113928701,31.3309668661049;119.595923234595,31.3325014048482;119.598762173018,31.3325312764082;119.608926442617,31.3327881882606;119.612475507104,31.3322488152809;119.614143051263,31.3306651490295;119.618440690139,31.3250947783297;119.622478274074,31.3227508205878;119.63219659853,31.3206967543846;119.633975605669,31.320418487789;119.636390992662,31.3148931407806;119.637458740232,31.3147027556223;119.637819282457,31.3147073926457;119.641159283527,31.3147394032712;119.639911256436,31.3170651737536;119.639778845379,31.3173874879862;119.639729791794,31.3176462931564;119.639709548243,31.3180170714629;119.639710986219,31.3195604176306;119.639740624101,31.3210955456243;119.639741020915,31.3215025508195;119.639678660553,31.3219786125138;119.639351780466,31.3238551712191;119.638886181201,31.3263956898364;119.638683421139,31.3272288380196;119.638620877708,31.3274942827119;119.638628051177,31.327627562837;119.638697994874,31.3277200662826;119.639069597564,31.3278491982081;119.640897416595,31.3284092080012;119.641527420206,31.32855322138;119.64191222975,31.3286255308381;119.642242282117,31.3286413095261;119.64252219906,31.3286288458568;119.642844094375,31.3285673418477;119.643117999648,31.3284635261377;119.643558965982,31.3281571577001;119.644916907312,31.3270052391077;119.645435830552,31.3266202959835;119.645813981954,31.3264320071757;119.646466338841,31.3261670813539;119.647490249607,31.3258946257233;119.648001952251,31.3258106519104;119.649054452953,31.3257609787345;119.649735543178,31.3257180153383;119.650353710416,31.3256327898405;119.652073341678,31.3252199213409";
	    var ply = new BMap.Polyline(str,
	                      {
	                          strokeWeight: 2, //设置多边形边线线粗

	                          strokeOpacity: 1, //设置多边形边线透明度0-1
	                          StrokeStyle: "solid", //设置多边形边线样式为实线或虚线，取值 solid 或 dashed

	                          strokeColor: "#ff0000", //设置多边形边线颜色

	                      }); //建立多边形覆盖物
	    map.addOverlay(ply);  //添加覆盖物
	    map.setViewport(ply.getPath());    //调整视野   
	}
		window.onload = function () {
	        //somecode
	        getBoundary();
	    }
		
		function addClickHandler(content,marker,id){
			marker.addEventListener("click",function(e){
				openInfo(content,e);
				var height = $(window).height();
				layer.open({
			      type: 2,
			      title: '党支部详情',
			      shadeClose: true,
			      shade: false,
			      maxmin: false, //开启最大化最小化按钮
			      area: ['1300px', height + 'px'],
			      content: 'map-tk.html?id='+id
			    });
			});
		}
		function openInfo(content,e){
			var p = e.target;
			var point = new BMap.Point(p.getPosition().lng, p.getPosition().lat);
			var infoWindow = new BMap.InfoWindow(content,opts);  // 创建信息窗口对象 
			map.openInfoWindow(infoWindow,point); //开启信息窗口
		}
		
	</script>
	</body>
</html>
